export const searchList = [
  {
    type: 'input',
    name: '所属学院',
    field: 'collageName',
  },
  {
    type: 'input',
    name: '班级名称',
    field: 'className',
  },
  {
    type: 'datetime',
    name: '考试时间',
    field: 'examDate',
  },
  
]

export const listColumns = [
  {
    title: '所属学院',
    key: 'collageName',
  },
  {
    title: '班级名称',
    key: 'className',
  },
  {
    title: '授课教师',
    key: 'teacherName',
  },
  {
    title: '成绩类型',
    key: 'scoreTypeName',
  },
  {
    title: '学年',
    key: 'academicYear',
  },
  {
    title: '考试批次',
    key: 'examBatch',
  },
  {
    title: '考试时间',
    key: 'examDate',
  }
]

export const actionArr = [
  {
    action: 'look',
    value: '查看',
  },
  {
    action: 'edit',
    value: '编辑',
  },
  {
    action: 'del',
    value: '删除',
  }
]

export const btnList = [
  {
    action: 'add',
    value: '新增',
    auth: ''
  }
];

export const rules = {
  collageId: [
    { required: true, message: '请输入所属学院', trigger: 'blur' },
  ],
  majorId: [
    { required: true, message: '请输入所属学院', trigger: 'blur' },
  ],
  classId: [
    { required: true, message: '请输入班级名称', trigger: 'blur' },
  ],
  teacherName: [
    { required: true, message: '请输入授课教师', trigger: 'blur' },
  ],
  scoreTypeName: [
    { required: true, message: '请输入成绩类型', trigger: 'change' },
  ],
  academicYear: [
    { required: true, message: '请输入学年', trigger: 'change' },
  ],
  examBatch: [
    { required: true, message: '请输入考试批次', trigger: 'change' },
  ],
  examDate: [
    { required: true, message: '请输入考试时间', trigger: 'change' },
  ]
}
